package com.gouying.design.patterns.builder;

public class BaoGongTou extends ZaoFangZi {

    private static BaoGongTou instance;

    public static BaoGongTou builder() {
        instance = new BaoGongTou();
        return instance;
    }

    public static BaoGongTou build() {
        return instance;
    }


    @Override
    ZaoFangZi zhuan() {
        this.zhuanNum = 100;
        return this;
    }

    @Override
    ZaoFangZi diji() {
        this.dijiNum = 200;
        return this;
    }

    @Override
    ZaoFangZi fangliang() {
        this.fangliangNum = 300;
        return this;
    }

    @Override
    ZaoFangZi baowen() {
        this.baowenNum = 400;
        return this;
    }
}
